const template = (`
    <div class="page" >
        <a href="javascript:;" @click="changePage(index+1)" v-for="(item, index) in pageNum" :key="index" :class="{active : pageNow === index+1}">{{index+1}}</a>
    </div>
`);
export default {
    template,
    props:['page-num','change-page','page-now'],
    data(){
        return {
            index : 1
        }
    },
}